package com.vmj.instructions.comparisions;

import com.vmj.instructions.base.BranchInstruction;
import com.vmj.rtda.Frame;

/**
 * Created by yangshoujun on 2017/9/16 下午2:33.
 */
public class IficpmLt extends BranchInstruction {

    @Override
    public void execute(Frame frame) {
        int v2 = frame.getOperandStack().popInt();
        int v1 = frame.getOperandStack().popInt();
        if(v1 < v2) {
            BranchInstruction.branch(frame, getOffset());
        }
    }
}
